package graph;

/**
 * A superclass of all Nodes that may hold a value: Literals, opearations, and variables
 * 
 * @author Habib
 *
 */

public abstract class ValueNode extends Node
{
	/**
	 * Checks if the value is valid
	 */
	public boolean validValue;
	
	/**
	 * Returns whether the value is valid
	 * 
	 * @return
	 */
	public boolean isValidValue()
	{
		return validValue;
	}
	
	/**
	 * Set the valid value status
	 * 
	 * @param b
	 */
	public void setValidValue(boolean b)
	{
		validValue = b;
	}

}